﻿using System.ServiceModel.Web;
namespace WCFTestApp
{
    public class Service1 : IService1
    {
        public string Hi(string name)
        {
            WebOperationContext.Current.OutgoingResponse.Headers.Add("Access-Control-Allow-Origin", "*");

            return "Hi " + name;
        }
    }
}